package com.uls.czj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.czj.mapper.CzjTemporaryapartmentMapper;
import com.uls.czj.domain.CzjTemporaryapartment;
import com.uls.czj.service.ICzjTemporaryapartmentService;

/**
 * 周转公寓管理Service业务层处理
 * 
 * @author czj
 * @date 2024-11-10
 */
@Service
public class CzjTemporaryapartmentServiceImpl implements ICzjTemporaryapartmentService 
{
    @Autowired
    private CzjTemporaryapartmentMapper czjTemporaryapartmentMapper;

    /**
     * 查询周转公寓管理
     * 
     * @param apartmentid 周转公寓管理主键
     * @return 周转公寓管理
     */
    @Override
    public CzjTemporaryapartment selectCzjTemporaryapartmentByApartmentid(Long apartmentid)
    {
        return czjTemporaryapartmentMapper.selectCzjTemporaryapartmentByApartmentid(apartmentid);
    }

    /**
     * 查询周转公寓管理列表
     * 
     * @param czjTemporaryapartment 周转公寓管理
     * @return 周转公寓管理
     */
    @Override
    public List<CzjTemporaryapartment> selectCzjTemporaryapartmentList(CzjTemporaryapartment czjTemporaryapartment)
    {
        return czjTemporaryapartmentMapper.selectCzjTemporaryapartmentList(czjTemporaryapartment);
    }

    /**
     * 新增周转公寓管理
     * 
     * @param czjTemporaryapartment 周转公寓管理
     * @return 结果
     */
    @Override
    public int insertCzjTemporaryapartment(CzjTemporaryapartment czjTemporaryapartment)
    {
        return czjTemporaryapartmentMapper.insertCzjTemporaryapartment(czjTemporaryapartment);
    }

    /**
     * 修改周转公寓管理
     * 
     * @param czjTemporaryapartment 周转公寓管理
     * @return 结果
     */
    @Override
    public int updateCzjTemporaryapartment(CzjTemporaryapartment czjTemporaryapartment)
    {
        return czjTemporaryapartmentMapper.updateCzjTemporaryapartment(czjTemporaryapartment);
    }

    /**
     * 批量删除周转公寓管理
     * 
     * @param apartmentids 需要删除的周转公寓管理主键
     * @return 结果
     */
    @Override
    public int deleteCzjTemporaryapartmentByApartmentids(Long[] apartmentids)
    {
        return czjTemporaryapartmentMapper.deleteCzjTemporaryapartmentByApartmentids(apartmentids);
    }

    /**
     * 删除周转公寓管理信息
     * 
     * @param apartmentid 周转公寓管理主键
     * @return 结果
     */
    @Override
    public int deleteCzjTemporaryapartmentByApartmentid(Long apartmentid)
    {
        return czjTemporaryapartmentMapper.deleteCzjTemporaryapartmentByApartmentid(apartmentid);
    }
}
